package page.Beans;

import java.sql.SQLException;

import basicTypes.RAResourceType;

public class insertRecType {
	private String name;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public String insertRecType_(loginBean x){
		RAResourceType novo = new RAResourceType(20, name);
		System.out.println("passo por aki");
		try{
			x.getBd().db_addType(x.getUser(), novo);
			System.out.println("Executei isso aqui");
		}
		catch(SQLException e){
			return "fail";
		}
		return "suc";
	}
	
}
